WS = require "WS"

dirs = {
	"java101",
	"lua101",
	"python101",
	"R101",
	"tex101",
	"java101",
	"wiki101",
}

base_linux = "/home/linuxing3/workspace"
newbase_linux = "/workspace"
base_mac = "/Volumes/mac/Tdownload/workspace"
newbase_mac = "/Users/linuxing3/workspace"

-- class WS
-- A object of workspace
ws = WS!
ws\pwd!

-- initialize ws object with dirs,source,target
ws.dirs = dirs
ws.source = base_linux
ws.target = newbase_linux

print "Your source directory is "..ws.source
print "Your source directory is "..ws.target
print file for i,file in pairs ws.dirs

switch ws\checkos "Linux"
	when "Linux" then ws.source = base_linux

print ws.source
--ws\walk 
--ws\link rootPath,targetPath
